﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Comment.cs" company="Spenta Consulting">
//   (c) Copyright 2011
// </copyright>
// <summary>
//   Complements the Comment class with extra information
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Spenta.StreetCare.Core.Models
{
    using System.ComponentModel.DataAnnotations;

    using Attributes;

    using Spenta.StreetCare.Core.Shared.Attributes;

    /// <summary>
    /// Complements the Comment class with extra information
    /// </summary>
    [MetadataType(typeof(CommentMetadata))]
    public partial class Comment
    {
        /// <summary>
        /// Metadata for Comment class
        /// </summary>
        public class CommentMetadata
        {
            /// <summary>
            /// Gets or sets the comment text.
            /// </summary>
            /// <value>The comment text.</value>
            [LocalizedRequired("CommentTextRequired")]
            [LocalizedDisplayName("CommentTextField")]
            public string CommentText { get; set; }
        }
    }
}
